/*
 * @Description:增强for循环
 * 
 * @Author: rendc
 * 
 * @Date: 2025-07-24 14:04:50
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-07-24 14:13:53
 */

import java.util.Arrays;

public class Test02 {

  public static void main(String[] args) {
    int[] arr = { 1, 2, 4 };
    for (int i : arr) {
      System.out.println("arr:" + i);
      i = 4;
    }
    System.out.println("arr:" + Arrays.toString(arr));
  }
}